﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls.UI;

namespace EClinic
{
    internal class x
    {
    }

    public partial class MainView : Telerik.WinControls.UI.RadRibbonForm
    {
      
       

        void Collapse()
        {
            foreach (var x in ListSplitContainer.Controls)
            {
                if (x.GetType() == typeof(SplitPanel))
                {
                    if (((SplitPanel)x).Collapsed == false)
                    {
                        splitPanel2.Collapsed = false;
                        return;
                    }
                }
            }
            splitPanel2.Collapsed = true;
        }

        private void radMenuItem2_Click(object sender, EventArgs e)
        {

            splitPanel4.Collapsed = !splitPanel4.Collapsed;
            Collapse();
        }



        private void radMenuItem5_Click(object sender, EventArgs e)
        {
            splitPanel5.Collapsed = !splitPanel5.Collapsed;
            Collapse();
        }

       

     

    }
}